import { FormSchema } from '/@/components/Form';

export const ftpSchemas: FormSchema[] = [
  {
    field: 'host',
    component: 'Input',
    label: '域名/IP',
    componentProps: {
      placeholder: '请输入FTP服务器域名或者IP地址',
    },
    required: true,
  },
  {
    field: 'port',
    component: 'Input',
    label: '端口号',
    componentProps: {
      placeholder: '请输入FTP服务端口号',
    },
    required: true,
  },
  {
    field: 'user',
    component: 'Input',
    label: '用户名',
    componentProps: {
      placeholder: '请输入FTP用户名',
    },
    required: true,
  },
  {
    field: 'password',
    component: 'InputPassword',
    label: '密码',
    componentProps: {
      placeholder: '请输入FTP密码',
    },
    required: true,
  },
  {
    field: 'mode',
    component: 'Checkbox',
    label: '主动模式',
    renderComponentContent: '',
    // colProps: {
    //   span: 8,
    // },
  },
  {
    field: 'transfer',
    component: 'Checkbox',
    label: '断点续传',
    renderComponentContent: '',
    // colProps: {
    //   span: 8,
    // },
  },
];
